package loc.dd.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import loc.dd.entity.User;
import loc.dd.mapper.UserMapper;

/**
*@author 作者：huyaqi
*@version 创作时间:2023年9月22日上午10:34:12
*
*/
@Service
public class UserService {
	@Autowired
	UserMapper usermapper;
	
	public int getlogin(String userphone,String password) {
		return usermapper.getlogin(userphone,password);
	}
	public int checklogin(String userphone) {
		return usermapper.checklogin(userphone);
	}
	public List<Map<String, Object>> getuser(int page,int pageSize){
		return usermapper.getuser(page,pageSize);
	}
	public int getsum() {
		return usermapper.getsum();
	}
	
	public int getoneuser(String userphone,int id) {
		return usermapper.getoneuser(userphone,id);
	}
	
	public HashMap<String, Object> getloginuser(String userphone){
		return usermapper.getloginuser(userphone);
		
	}
	
	public int checkshifouuser(String userphone) {
		return usermapper.checkshifouuser(userphone);
	}
	
	public int edituser(User user) {
		return usermapper.edituser(user);
	}
	
	public int adduser(User user) {
		return usermapper.adduser(user);
	}
	
	public HashMap<String, Object> getnewuser(int id){
		return usermapper.getnewuser(id);
		
	}
	
	public List<Map<String, Object>> selectuser(String username,int page,int pageSize){
		return usermapper.selectuser(username,page,pageSize);
	}
	
	public int selectsum(String username) {
		return usermapper.selectsum(username);
	}
	
	public String getAid(String uid) {
		return usermapper.getAid(uid);
	}
	
	public String getqx(String uid) {
		return usermapper.getqx(uid);
	}
	
	
	public List<Map<String, Object>> getjifenrenyuan(List<String> aidList){
		return usermapper.getjifenrenyuan(aidList);
	}
}
